<div class="container-fluid" style="padding: 20px 10px 0px 10px">
	<div class="row-fluid">
		<div class="well">
		    <ul class="nav nav-tabs">
		      <li class="active"><b>添加推送</b></li>
		    </ul>
		    <div id="myTabContent" class="tab-content">
				<div class="tab-pane active in" id="home">
					<form id="formid" action="/sysmsg/addmsg" method="post">
						<p><label style="display:inline" value="type1" class="putclick"><input style="margin-top:1px" type="radio" name="ts" value="type1" /> 上传文件</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<label class="putclick" value="type2" style="display:inline"><input style="margin-top:1px" value="type2" name="ts" type="radio" /> 文本转化</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<label style="display:inline" value="type3" class="putclick"><input style="margin-top:1px" type="radio" name="ts" value="type3" /> 纯文本</label></p>
						<p class="type1" style="display:none"><input type="text" value="" placeholder="推广文本" style="width:425px" name="title" type='text' class="checktitle"></p>
						<p class="type1" style="display:none"><div id="setImd" class="type1" style="display:none"><input type="text" placeholder="选择推广语音" name="voice_url" class="setImdText" style="width:272px" value="<?=$getData['voice_url']?>" readonly> <input type="button" class="btn btn-info setImdBtn" style='margin-top:-8px' value="选择图片">&nbsp;<a class="btn btn-warning  picViews" <?=$getData['voice_url'] ? '' : 'disabled title="暂不可用"'?> url="<?=$getData['voice_url'] ? transUrl($getData['voice_url']) : ''?>" style='margin-top:-8px'>查看</a></div></p>
						<p class="type2" style="display:none">
							<textarea style="width:425px;height:55px" name="contents" placeholder="文本转语音" class="checkcon"></textarea>
						</p>
						<p class="type3" style="display:none"><textarea style="width:425px;height:55px" name="texts" placeholder="纯文本发送" class="checkcon"></textarea></p>
						
						<input type="hidden" value="1" name="dosubmit" />
					</form>
				</div>
				<div class="btn-toolbar">
				    <button class="btn btn-primary" id="btn-save"><i class="icon-save"></i> 确认</button>
				  <div class="btn-group">
				  </div>
				</div>
			</div>
		</div>
	</div>
</div>
<script>
$(function(){
	$('.putclick').click(function(){
		if($(this).attr('value') == 'type1'){
			$('.type1').show();
			$('.type2').hide();
			$('.type3').hide();
		}else if($(this).attr('value') == 'type2'){
			$('.type1').hide();
			$('.type2').show();
			$('.type3').hide();
		}else if($(this).attr('value') == 'type3'){
			$('.type2').hide();
			$('.type3').show();
			$('.type1').hide();
		}
	});
	$('.putclick').eq(0).click();
	$('.setImdBtn').click(function(){
		$('#setImd').selfups();
	});
	$('#btn-save').click(function(){
		alert('静待硬件支持！');return false;
		setBtn($('#btn-save'));
		$('#formid').submit();
	});
})
</script>